{include file="header.html"}
<div id="rightTop">
    <p>{$lang.customer_message}</p>
    <ul class="subnav">
        <li><a class="btn1" href="index.php?app=customer_message">{$lang.customer_message_index}</a></li>
        <li><a class="btn1" href="index.php?app=customer_message&amp;act=store">{$lang.customer_message_store}</a></li>
        <li><span>{$lang.customer_message_goods}</span></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="customer_message" />
                <input type="hidden" name="act" value="goods" />
                <select class="querySelect" name="status">
                    <option value="">{$lang.search_status}</option>
                    {html_options options=$status_list selected=$query.status}
                </select>
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=customer_message&act=goods">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $customer_message_list}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $customer_message_list}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"><input type="checkbox" class="checkall" /></td>
            <td align="left">{$lang.realname}</td>
            <td align="left">{$lang.mobile}</td>
            <td align="left">{$lang.goods_name}</td>
            <td width="50%">{$lang.message}</td>
            <td align="left">{$lang.add_time}</td>
            <td class="handler">{$lang.handler}</td>
        </tr>
        <!--{/if}-->
        <!--{foreach from=$customer_message_list item=customer_message}-->
        <tr class="tatr2">
            <td class="firstCell"><input value="{$customer_message.customer_message_id}" class='checkitem' type="checkbox" /></td>
            <td align="left">{$customer_message.realname|escape}</td>
            <td align="left">{$customer_message.mobile|escape}</td>
            <td align="left"><a href="{$site_url}/index.php?app=goods&amp;id={$customer_message.goods_id}" target="_blank">{$customer_message.goods_name|escape}</a></td>
            <td align="left" style="padding-right:20px;">{$customer_message.message|escape}</td>
            <td align="left">{$customer_message.add_time|date:complete}</td>
            <td class="handler">
                <!--{if $customer_message.status != 1}-->
                <a href="index.php?app=customer_message&amp;act=status&amp;id={$customer_message.customer_message_id}">{$lang.status}</a>
                <!--{/if}-->
                <a name="drop" href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=customer_message&amp;act=drop&amp;id={$customer_message.customer_message_id}');">{$lang.drop}</a>
            </td>
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $customer_message_list}-->
    <div id="dataFuncs">
        <div id="batchAction" class="left paddingT15">
            <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=customer_message&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
        </div>
        <div class="pageLinks">
            {if $customer_message_list}{include file=page.bottom.html}{/if}
        </div>
    </div>
    <!--{/if}-->
    <div class="clear"></div>
</div>
{include file="footer.html"}
